Use the packaged version of MathJax.
authorJordi Mallach <jordi@debian.org>
Thu, 8 Jan 2026 21:38:56 +0000 (22:38 +0100)
committerJordi Mallach <jordi@debian.org>
Thu, 8 Jan 2026 21:38:56 +0000 (22:38 +0100)
Forwarded: no

Avoid a privacy breach by using the packaged version of
libjs-mathjax in the generated sphinx docs.

Gbp-Pq: Name sphinx_mathjax_location.patch

docs/source/conf.py

index 0a56be81d7c2325dd9fc8fafdcae26eab2c750e0..2d33fd94f57393e0a53fdd4a8c8e8efd28cc6fe3 100644 (file)
@@ -40,7 +40,7 @@ edit_on_github_project = 'mamedev/mame'
 edit_on_github_branch = 'master/docs/source'
 
 # Math
-mathjax_path = "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
+mathjax_path = "file:///usr/share/javascript/mathjax/config/TeX-AMS-MML_HTMLorMML.js"
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']